package com.zhou.springcloud.provider.dao;

import com.zhou.springcloud.api.pojo.Dept;

import java.util.List;

/** 
    * @Description: ${Description}
    * @author zhouyongjun
    * @date 2021/3/24 8:42 
   */
public interface DeptMapper {
    /**
     * delete by primary key
     * @param deptno primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long deptno);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Dept record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(Dept record);

    /**
     * select by primary key
     * @param deptno primary key
     * @return object by primary key
     */
    Dept selectByPrimaryKey(Long deptno);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Dept record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Dept record);

    List<Dept> selectAll();
}